Change in openvpn[master]: Remove unused function check_subnet_conflict
A message that is not in the archive (sent off-list or not yet received): gerrit.1736860439000.If570253e57371e4126b0e8aa4c349e2051cb8b00@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/863?usp=email
to review the following change.
Change subject: Remove unused function check_subnet_conflict
......................................................................
Remove unused function check_subnet_conflict
This has been #if 0 for over a decade. Let's just
remove this.
---
M src/openvpn/route.c
M src/openvpn/tun.c
M src/openvpn/tun.h
3 files changed, 0 insertions(+), 52 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/63/863/1
src/openvpn/route.c +0 -1
@@ -1218,7 +1218,6 @@for (r = rl->routes; r; r = r->next) { -check_subnet_conflict (r->network, r->netmask,"route" );if (flags &ROUTE_DELETE_FIRST ) {delete_route (r, tt, flags, &rl->rgi, es, ctx);
src/openvpn/tun.c +0 -47
59 lines not on this page · raw message
src/openvpn/tun.h +0 -4
@@ -355,10 +355,6 @@bool is_tun_p2p (const struct tuntap *tt); -void check_subnet_conflict (const in_addr_t ip, -const in_addr_t netmask, -const char *prefix); -void warn_on_use_of_common_subnets (openvpn_net_ctx_t *ctx);/**
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/863?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: If570253e57371e4126b0e8aa4c349e2051cb8b00
Gerrit-Change-Number: 863
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/863?usp=email )
Change subject: Remove unused function check_subnet_conflict
......................................................................
Patch Set 4: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/863?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: If570253e57371e4126b0e8aa4c349e2051cb8b00
Gerrit-Change-Number: 863
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Sun, 09 Mar 2025 16:54:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH v4 1/1 Remove unused function check_subnet_conflict
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
This has been #if 0 for over a decade. Let's just
remove this.
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/863
This mail reflects revision 4 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/route.c +0 -1
@@ -1218,7 +1218,6 @@for (r = rl->routes; r; r = r->next) { -check_subnet_conflict (r->network, r->netmask,"route" );if (flags &ROUTE_DELETE_FIRST ) {delete_route (r, tt, flags, &rl->rgi, es, ctx);
src/openvpn/tun.c +0 -47
59 lines not on this page · raw message
src/openvpn/tun.h +0 -4
@@ -355,10 +355,6 @@bool is_tun_p2p (const struct tuntap *tt); -void check_subnet_conflict (const in_addr_t ip, -const in_addr_t netmask, -const char *prefix); -void warn_on_use_of_common_subnets (openvpn_net_ctx_t *ctx);/**
[Openvpn-devel] [PATCH applied] Re: Remove unused function check_subnet_conflict
Haven't tested this (beyond "does it compile") as there is not much to test - the function called is completely #if 0'ed, and there are no side effects in the calls.
I'm a bit sad to see it go (the idea behind it is useful), but it did not work the way it was written, was not adjusted to recent updates, and should propably need to take IPv6 into account - so quite a project. But if someone wants to bring it back and make it useful, be by guest ;-)
Your patch has been applied to the master branch.
commit 536809792da2e4f540015f032ab656680021be03
Author: Frank Lichtenheld Date: Sun Mar 9 17:55:00 2025 +0100
Remove unused function check_subnet_conflict
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg31083.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#5) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/863?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: Remove unused function check_subnet_conflict
......................................................................
Remove unused function check_subnet_conflict
This has been #if 0 for over a decade. Let's just
remove this.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg31083.html
---
M src/openvpn/route.c
M src/openvpn/tun.c
M src/openvpn/tun.h
3 files changed, 0 insertions(+), 52 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/63/863/5
src/openvpn/route.c +0 -1
@@ -1218,7 +1218,6 @@for (r = rl->routes; r; r = r->next) { -check_subnet_conflict (r->network, r->netmask,"route" );if (flags &ROUTE_DELETE_FIRST ) {delete_route (r, tt, flags, &rl->rgi, es, ctx);
src/openvpn/tun.c +0 -47
59 lines not on this page · raw message
src/openvpn/tun.h +0 -4
@@ -355,10 +355,6 @@bool is_tun_p2p (const struct tuntap *tt); -void check_subnet_conflict (const in_addr_t ip, -const in_addr_t netmask, -const char *prefix); -void warn_on_use_of_common_subnets (openvpn_net_ctx_t *ctx);/**
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/863?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: If570253e57371e4126b0e8aa4c349e2051cb8b00
Gerrit-Change-Number: 863
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/863?usp=email )
Change subject: Remove unused function check_subnet_conflict
......................................................................
Remove unused function check_subnet_conflict
This has been #if 0 for over a decade. Let's just
remove this.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg31083.html
---
M src/openvpn/route.c
M src/openvpn/tun.c
M src/openvpn/tun.h
3 files changed, 0 insertions(+), 52 deletions(-)
src/openvpn/route.c +0 -1
@@ -1218,7 +1218,6 @@for (r = rl->routes; r; r = r->next) { -check_subnet_conflict (r->network, r->netmask,"route" );if (flags &ROUTE_DELETE_FIRST ) {delete_route (r, tt, flags, &rl->rgi, es, ctx);
src/openvpn/tun.c +0 -47
59 lines not on this page · raw message
src/openvpn/tun.h +0 -4
@@ -355,10 +355,6 @@bool is_tun_p2p (const struct tuntap *tt); -void check_subnet_conflict (const in_addr_t ip, -const in_addr_t netmask, -const char *prefix); -void warn_on_use_of_common_subnets (openvpn_net_ctx_t *ctx);/**
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/863?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: If570253e57371e4126b0e8aa4c349e2051cb8b00
Gerrit-Change-Number: 863
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged